#ifndef PRODUCT_H_
#define PRODUCT_H_

#include <string>
#include <sstream>

using namespace std;

struct Product
{
public:
//private:
   //constants
     

   // private data
	int prod_id;
	int cat_id;
	string prod_name;
	double prod_price;

   
//public:
	//data

	// constructors
	Product () {}
	Product(int p_id, int c_id, string p_name, double p_price):					//SC & AM A3
		prod_id(p_id), cat_id(c_id), prod_name(p_name), prod_price(p_price) {}	//SC & AM A3

   // utility functions
	string display() const	//RY
	{
		stringstream str;
		str << prod_id << "\t" << cat_id << "\t" << prod_name << "\ts" << prod_price;
		return str.str();
	}
	
	int getcatid() {
		return cat_id;
	}
	
	int getprodid()	{
		return prod_id;
	}
	
	double getprodprice() {
		return prod_price;
	}
};


#endif //PRODUCT_H_
